# _*_ coding:utf-8 _*_
# @Time : 2023/6/7 16:48
# @Author : wsl
# @File : demo
# @Project : selenium 4.9.1 有界面的浏览器 性能慢
from selenium import webdriver
from selenium.webdriver.chrome.service import Service

s = Service('chromedriver.exe')
driver = webdriver.Chrome(service=s)
# url = 'https://www.baidu.com'
url = 'https://www.jd.com'
driver.get(url)
# 防止界面闪退
# input()
# driver.quit()

print(driver.page_source)
